/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bionic.manager;

import java.util.ResourceBundle;

/**
 *
 * @author Obuhov D.G.
 */
public class Config {

    private static Config instance;
    private ResourceBundle resource;
    private static final String BUNDLE_NAME = "com.bionic.manager.config";
    public static final String DRIVER = "DRIVER";
    public static final String URL = "URL";
    public static final String MAIN = "MAIN";
    public static final String ERROR = "ERROR";
    public static final String LOGIN = "LOGIN";

    public static final String USER_FORM = "USER_FORM";
    public static final String USER_EDIT = "USER_EDIT";
    
    public static final String REQUESTS_VIEW = "REQUESTS_VIEW";
    public static final String REQUEST_EDIT = "REQUEST_EDIT";
    
    public static final String ACCOUNTS_VIEW = "ACCOUNTS_VIEW";
    
    
    public static final String DATASOURCE = "DATASOURCE";
    
    public static Config getInstance() {
        if (instance == null) {
            instance = new Config();
            instance.resource = ResourceBundle.getBundle(BUNDLE_NAME);
        }
        return instance;
    }
    
    public String getProperty (String key){
      return (String)resource.getObject(key);
    
    }
            
}
